package cn.schoolwow.workflow.domain.deploy;

/**多人审批处理类型*/
public enum DeployApprovalType {
    /**会签*/
    AllApproval(0),
    /**或签*/
    AnyApproval(1),
    /**顺序审批*/
    SequentialApproval(2);
    int value;

    DeployApprovalType(int value) {
        this.value = value;
    }

    public static DeployApprovalType getDeployApprovalType(int value){
        DeployApprovalType[] deployApprovalTypes = DeployApprovalType.values();
        for(DeployApprovalType deployApprovalType:deployApprovalTypes){
            if(deployApprovalType.value==value){
                return deployApprovalType;
            }
        }
        throw new IllegalArgumentException("多人审批处理类型不存在!类型值:"+value);
    }
}
